package com.ruoyi.common.core.domain.entity;

import java.util.ArrayList;
import java.util.List;
import javax.validation.constraints.Email;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 法院表 sys_court
 *
 * @author ruoyi
 */
public class SysCourt extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 法院ID */
    private Long courtId;

    /** 父法院ID */
    private Long parentId;

    /** 祖级列表 */
    private String ancestors;

    /** 法院名称 */
    private String courtName;

    /** 显示顺序 */
    private String orderNum;

    /** 负责人 */
    private String leader;

    /** 联系电话 */
    private String phone;

    /** 邮箱 */
    private String email;

    /** 法院级别 */
    private String level;

    /** 缩略名 */
    private String shortName;

    /** 缩略名2 */
    private String shortNameT;

    /** 缩略名3 */
    private String shortNameTh;

    /** 缩略名4 */
    private String shortNameFo;

    /** 省 */
    private String province;

    /** 市 */
    private String city;

    /** 县/区 */
    private String district;

    /** 法院代字 */
    private String code;

    /** 法院标识代码 */
    private Long courtFlagCode;

    /** 法院状态:0正常,1停用 */
    private String status;

    /** 删除标志（0代表存在 2代表删除） */
    private String delFlag;

    /** 父法院名称 */
    private String parentName;

    /** 子法院 */
    private List<SysCourt> children = new ArrayList<SysCourt>();

    public Long getCourtId()
    {
        return courtId;
    }

    public void setCourtId(Long courtId)
    {
        this.courtId = courtId;
    }

    public Long getParentId()
    {
        return parentId;
    }

    public void setParentId(Long parentId)
    {
        this.parentId = parentId;
    }

    public String getAncestors()
    {
        return ancestors;
    }

    public void setAncestors(String ancestors)
    {
        this.ancestors = ancestors;
    }

    @NotBlank(message = "法院名称不能为空")
    @Size(min = 0, max = 30, message = "法院名称长度不能超过30个字符")
    public String getCourtName()
    {
        return courtName;
    }

    public void setCourtName(String courtName)
    {
        this.courtName = courtName;
    }

    @NotBlank(message = "显示顺序不能为空")
    public String getOrderNum()
    {
        return orderNum;
    }

    public void setOrderNum(String orderNum)
    {
        this.orderNum = orderNum;
    }

    public String getLeader()
    {
        return leader;
    }

    public void setLeader(String leader)
    {
        this.leader = leader;
    }

    @Size(min = 0, max = 11, message = "联系电话长度不能超过11个字符")
    public String getPhone()
    {
        return phone;
    }

    public void setPhone(String phone)
    {
        this.phone = phone;
    }

    @Email(message = "邮箱格式不正确")
    @Size(min = 0, max = 50, message = "邮箱长度不能超过50个字符")
    public String getEmail()
    {
        return email;
    }

    public void setEmail(String email)
    {
        this.email = email;
    }

    public String getLevel() {
        return level;
    }

    public void setLevel(String level) {
        this.level = level;
    }

    public String getShortName() {
        return shortName;
    }

    public void setShortName(String shortName) {
        this.shortName = shortName;
    }

    public String getShortNameT() {
        return shortNameT;
    }

    public void setShortNameT(String shortNameT) {
        this.shortNameT = shortNameT;
    }

    public String getShortNameTh() {
        return shortNameTh;
    }

    public void setShortNameTh(String shortNameTh) {
        this.shortNameTh = shortNameTh;
    }

    public String getShortNameFo() {
        return shortNameFo;
    }

    public void setShortNameFo(String shortNameFo) {
        this.shortNameFo = shortNameFo;
    }

    public String getProvince() {
        return province;
    }

    public void setProvince(String province) {
        this.province = province;
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public String getDistrict() {
        return district;
    }

    public void setDistrict(String district) {
        this.district = district;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public Long getCourtFlagCode() {
        return courtFlagCode;
    }

    public void setCourtFlagCode(Long courtFlagCode) {
        this.courtFlagCode = courtFlagCode;
    }

    public String getStatus()
    {
        return status;
    }

    public void setStatus(String status)
    {
        this.status = status;
    }

    public String getDelFlag()
    {
        return delFlag;
    }

    public void setDelFlag(String delFlag)
    {
        this.delFlag = delFlag;
    }

    public String getParentName()
    {
        return parentName;
    }

    public void setParentName(String parentName)
    {
        this.parentName = parentName;
    }

    public List<SysCourt> getChildren()
    {
        return children;
    }

    public void setChildren(List<SysCourt> children)
    {
        this.children = children;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("courtId", getCourtId())
            .append("parentId", getParentId())
            .append("ancestors", getAncestors())
            .append("courtName", getCourtName())
            .append("orderNum", getOrderNum())
            .append("leader", getLeader())
            .append("phone", getPhone())
            .append("email", getEmail())
            .append("status", getStatus())
            .append("delFlag", getDelFlag())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
